<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
> warcvalidator </TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE=" warc-tools version 0.17  A library for data archiving "
HREF="index.html"><LINK
REL="UP"
TITLE=" Detailed utilisation "
HREF="c126.html"><LINK
REL="PREVIOUS"
TITLE=" warcfilter "
HREF="x174.html"><LINK
REL="NEXT"
TITLE=" warcserver "
HREF="x206.html"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>warc-tools version 0.17  A library for data archiving</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x174.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 3. Detailed utilisation</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x206.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="AEN186"
>3.4. warcvalidator</A
></H1
><P
>&#13;		The option -f is mandatory  when you use warcvalidator. It is used to indicate the name of the WARC file to validate.
        </P
><P
>&#13;        The option  -t is optional, it is as described previously. 
        </P
><P
>&#13;        The option -v is different from -v options given  previously, in this case it allows
        to display a result message.
        </P
><P
>&#13;        The following example shows how to use the warcvalidator commad to test the validity of the WARC file  <TT
CLASS="filename"
>"file.warc"</TT
>:
        </P
><DIV
CLASS="example"
><A
NAME="AEN193"
></A
><P
><B
>Example 3-7.  How to use the warcvalidator command. </B
></P
><PRE
CLASS="screen"
>&#13;<SAMP
CLASS="prompt"
>mohamed@mohamed-desktop:~$ </SAMP
><KBD
CLASS="userinput"
>warcvalidator -f file.warc  -v </KBD
>
        </PRE
></DIV
><P
>&#13;        warcvalidator.sh is a script shell that can validate several WARC files in a directory.
        It calls the warcvalidator command defined previously.
        The option -d in this case is used to give the directory of the WARC files. The option -v in this case only specifies the warc version.
        </P
><P
>&#13;        To validate all WARC files in the directory <TT
CLASS="filename"
>"/tmp/file"</TT
>,  we can proceed as in  the following example :
        </P
><DIV
CLASS="example"
><A
NAME="AEN201"
></A
><P
><B
>Example 3-8.  How to use the warcvalidator.sh command. </B
></P
><PRE
CLASS="screen"
>&#13;<SAMP
CLASS="prompt"
>mohamed@mohamed-desktop:~$ </SAMP
><KBD
CLASS="userinput"
> warcvalidator.sh -d /file/tmp </KBD
>
        </PRE
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x174.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x206.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>warcfilter</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="c126.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>warcserver</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>